import Vue from 'vue'
import Vuex from 'vuex'
import time from './modules/date'
import common from './modules/common'
import cookie from './modules/cookie';

Vue.use(Vuex)
// Vue.use(VueResource)
const store = new Vuex.Store({
    state: {
      // baseUrl: 'http://10.10.10.23:81',
      baseUrl: 'http://isps.qingmengcar.com'
    },
    mutations: {
        increment (state) {
        }
      },
      actions: {
        changeTitle({commit}, title){
           document.title = title
        },
      },
      modules: {
        time,
        common,
        cookie
      }
})
export default store